<?php

declare (strict_types=1);
namespace App\Model;

use Hyperf\DbConnection\Model\Model;
/**
 * @property int $id 用户ID，主键
 * @property string $name 公司名称
 * @property string $leader 公司负责人
 * @property string $mobile 负责人手机号码
 * @property string $email 邮箱
 * @property int $sort 排序
 * @property int $status 状态 (1正常 2停用)
 * @property int $parent_id 父级id
 * @property int $system_user_id 所属用户
 * @property int $del_flag 删除标识，0为默认，1为删除
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 * @property string $deleted_at 删除时间
 */
class UserCompany extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'user_company';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['id', 'name', 'leader', 'mobile', 'email', 'sort', 'status', 'parent_id', 'system_user_id', 'del_flag', 'created_at', 'updated_at', 'deleted_at'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'integer', 'sort' => 'integer', 'status' => 'integer', 'parent_id' => 'integer', 'system_user_id' => 'integer', 'del_flag' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}